with open('/files/learning_python.txt') as file_object:
    contents = file_object.read()
    print(contents.rstrip())
with open('/files/learning_python.txt') as file_object:
    for con in file_object:
      print(con.rstrip())
learning_string = ''
for content in contents:
    learning_string += content
print(learning_string)
with open('/files/learning_python.txt') as file_object:
    contents = file_object.read()
    print(contents.rstrip().replace('Python','Java'))